#!/bin/bash
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
#

#Traffic Ops Settings
# The following configs should be configured to point to the 
# Traffic Ops instances that is connected to the MySQL that 
# you want to convert
TO_SERVER=to_url
TO_USER=(your_user)
TO_PASSWORD=(your_password)

# Staging Mysql 
# These variables are for the "staging" Docker MySQL instance that is used
# to load the Traffic Ops "dbdump" into.  ONLY change the MYSQL_HOST variable
# Leave the other variables.
MYSQL_HOST=( the_ip_address_running_this_migration )
MYSQL_PORT=3306
MYSQL_DATABASE=traffic_ops_db
MYSQL_USER=to_user
MYSQL_PASSWORD=twelve
MYSQL_RANDOM_ROOT_PASSWORD=yes

# New production Postgres Settings, these variables should be changed for the Postgres 
# instance that will contain the existing MySQL data converted
POSTGRES_HOST=( the_ip_address_running_this_migration )
POSTGRES_PORT=5432
# NOTE: The new database name for Traffic Ops
POSTGRES_DATABASE=traffic_ops
POSTGRES_USER=traffic_ops
POSTGRES_PASSWORD=( your_new_postgres_password )
PGDATA=/opt/postgresql/data/pgdata
